pp108 : Script, Style, and XML Data Island changes for Multi-browser Support

Script, Style, and XML Data Island changes for Multi-browser Support

This topic describes the changes required in the Script and Style tags, and XML data islands to ensure multi-browser support.

For Web content in an application to render and work properly in multiple browsers, the scripts and style tags, and the XML data islands in the Web content must be modified to be standards-compliant.

To do so, proper type attributes must be set for all script, style, and XML tags, as shown below.

  • <script type="text/javascript" src="...">
  • <style type="text/css">
  • <link rel="stylesheet" type="text/css" href="..."/>

Note:
In case of XForms, type attributes for the script, style, and XML tags are automatically provided if the Transitional property is selected in the XForms property sheet.